#pragma once
#ifndef xIO_h__
#define xIO_h__

#include "../inc/xType.h"
namespace NLib
{
	namespace NIO
	{
		class xIOInterface;
		///
		class xIOFinishCallBack
		{
		public:
			virtual TInt callBack(xIOInterface* ioc);
		};
		///
		class xIOInterface
		{
		public:
			virtual TBool readData (TByte* data,TInt len,TUint* bytesDone,TUint pos = -1,xIOFinishCallBack* callBack = vNull) = 0;
			virtual TBool writeData(TByte* data,TInt len,TUint* bytesDone,TUint pos = -1,xIOFinishCallBack* callBack = vNull) = 0;

			//virtual TInt printfString(myChar* str,)
		};
		
	}
}
#endif // xIO_h__